﻿//-----------------------------------------------------------------------
// <copyright file="frmSqlConnection.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
//-----------------------------------------------------------------------
#region Usings

using System;
using System.Data.SqlClient;
using System.Windows.Forms;

#endregion

namespace GateShift.Tools.DatabaseMigration
{
    /// <summary>
    /// Connection String Builder Form
    /// </summary>
    public partial class SqlConnectionForm : Form
    {
        /// <summary>
        /// Initializes a new instance of the SqlConnectionForm class
        /// </summary>
        public SqlConnectionForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Gets or sets the current database connection string
        /// </summary>
        public SqlConnectionStringBuilder ConnectionString { get; set; }

        /// <summary>
        /// Event Handler for the form loading
        /// </summary>
        /// <param name="sender">Form calling this method</param>
        /// <param name="e">Empty EventArgs</param>
        private void SqlConnectionForm_Load(object sender, EventArgs e)
        {
            pgConnection.SelectedObject = ConnectionString;
        }
    }
}